﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="Smart.Account.Login" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Вход
    </h2>
    <p>
        Моля въведете потребителско име и парола.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false" NavigateUrl="~/Account/RegisterUser.aspx">Регистрирайте се</asp:HyperLink>
        ако нямате потребителски профил.
    </p>
    <span class="failureNotification">
        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
    </span>
    <asp:UpdatePanel runat="server" ID="upErrorMessage" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Label runat="server" ID="lblErrorMessage" Text="The username or password you entered is incorrect."
                CssClass="failureNotification" Visible="false" />
            <div class="accountInfo">
                <fieldset class="login">
                    <legend>Информация за потребителския профил</legend>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="tbEmail">Име:</asp:Label>
                        <asp:TextBox ID="tbEmail" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="tbEmail"
                            CssClass="failureNotification" ErrorMessage="Потребителското име е задължително." ToolTip="Потребителското име е задължително."
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="tbPassword">Парола:</asp:Label>
                        <asp:TextBox ID="tbPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="tbPassword"
                            CssClass="failureNotification" ErrorMessage="Паролата е задължителна." ToolTip="Паролата е задължителна."
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Вход" ValidationGroup="LoginUserValidationGroup"
                        OnClick="LoginButton_Click" />
                </p>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
